<template>
  <div class="spl-breadcrumb">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item class="f-cursor" v-for="item in data" :key="item.path">
        <router-link v-if="item.path" :to="item.path" v-text="item.name"></router-link>
        <a v-else style="cursor: initial">
          {{item.name}}
        </a>
      </el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>
<script>
export default {
  props: {
    // 参数  导航数据
    data: {
      type: Array,
      default: function () {
        return []
      }
    }
  },
  data () {
    return {}
  },
  created () {
  },
  computed: {

  },
  methods: {
  }
}
</script>
